package org.hyperzsoft.frags;

import java.text.DecimalFormat;

import org.hyperzsoft.Constants;

import android.app.Fragment;
import android.os.Bundle;

@SuppressWarnings("unused")
public class TeamFragment extends Fragment {
	
	int position;
	String fullName;
	String acroName;
	Constants.Division div;
	int gamesPlayed;
	int won;
	int lost;
	int otloss;
	int points;
	int regPlusOT;
	int goalsFor;
	int goalsAga;
	String homeRec;
	String awayRec;
	String lastTen;
	String streak;
	String soRec;
	float avgGFG;
	float avgGAG;
	int goalDiff;
	float winPerc;
	int lostPoints;
	float pointPerc;
	
	@Override
    public void onActivityCreated(Bundle savedInstanceState) {
		
	}
	
	private void formulateValues() {
		DecimalFormat twoDForm = new DecimalFormat("#.##");
		
		avgGFG = Float.valueOf(twoDForm.format((float)goalsFor / (float)gamesPlayed));
		avgGAG = Float.valueOf(twoDForm.format((float)goalsAga / (float)gamesPlayed));
		goalDiff = goalsFor - goalsAga;
		winPerc = Float.valueOf(twoDForm.format((float)won/(float)gamesPlayed));
		lostPoints = (gamesPlayed * 2) - ((won * 2) + otloss);
		pointPerc = Float.valueOf(twoDForm.format((float)(((float)won * 2) + (float)otloss) / (float)((float)gamesPlayed * 2)));
	}
}
